package com.hl.security;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import java.util.ArrayList;

/**
 * Created by evan on 2016/2/24.
 */
public class HlUserServicesImpl implements UserDetailsService {

    private static final Logger logger = LoggerFactory.getLogger(HlUserServicesImpl.class);


    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        return new UserDetail("hgc4","8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92",new ArrayList<GrantedAuthority>(),"s","g");
    }


}
